package com.petRescueCenter.demo.pet.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.petRescueCenter.demo.pet.entity.Pet;

@Repository
public interface PetDao extends PagingAndSortingRepository<Pet, Long>, JpaSpecificationExecutor<Pet> {
	@Query(value = "select img from t_pet p join left in t_user u where u.id = 1 order by id desc limit 0,9", nativeQuery = true)
	public List<String> getImg();
}
